package geektime.spring.springbucks;

import com.alibaba.druid.filter.FilterEventAdapter;
import com.alibaba.druid.proxy.jdbc.StatementProxy;
import com.alibaba.druid.wall.WallFilter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class SqlFilter extends FilterEventAdapter {
    @Override
    protected void statementExecuteAfter(StatementProxy statement, String sql, boolean result) {
        System.out.println(sql);
        super.statementExecuteAfter(statement, sql, result);
    }
}